const fs = require("fs");
const path = require("path");
var filePath = path.join(__dirname,"/1.txt");

//异步方法
fs.readFile(filePath,(err,data)=>{
    if(err){
        console.log(err);
    }else{
        console.log(data.toString("utf-8"));
    }
});

console.log("同步代码执行");